<?php echo validation_errors("<div class='alert alert-danger'>", "</div>"); ?>
<form class="form-horizontal" method="post" enctype="multipart/form-data">
    
    <div class="form-group">
        <label class="col-lg-2 control-label">Comentarios</label>
        <div class="col-lg-4"><?=$nc['idnc']?></div>
    </div>
    
    <div class="form-group">
        <label class="col-lg-2 control-label">Fecha</label>
        <div class="col-lg-4"><?=substr($nc['fecha'],8,2).'/'.substr($nc['fecha'], 5, 2).'/'.substr($nc['fecha'], 0, 4)?></div>
    </div>
    
    <div class="form-group">
        <label class="col-lg-2 control-label">Descripci&oacute;n</label>
        <div class="col-lg-4"><?=$nc['descripcion']?></div>
    </div>
    
    <div class="form-group">
        <label class="col-lg-2 control-label">Disposici&oacute;n</label>
        <div class="col-lg-4"><?=$nc['derivada']['disposicion']['disposicion']?></div>
    </div>
    
    <div class="form-group">
        <label class="col-lg-2 control-label">Descripci&oacute;n</label>
        <div class="col-lg-4"><?=$nc['derivada']['descripcion']?></div>
    </div>
    
    <div class="form-group">
        <label class="col-lg-2 control-label">Tipo</label>
        <div class="col-lg-4"><?=$nc['derivada']['accion']['tipo_accion']?></div>
    </div>
    
    <div class="form-group">
        <label class="col-lg-2 control-label">Fecha Prevista</label>
        <div class="col-lg-4"><?=substr($nc['derivada']['fecha_prevista'], 8, 2).'/'.substr($nc['derivada']['fecha_prevista'], 5, 2).'/'.substr($nc['derivada']['fecha_prevista'], 0, 4)?></div>
    </div>
    
    <div class="form-group">
        <label class="col-lg-2 control-label">An&aacute;lisis de Causa Ra&iacute;z</label>
        <div class="col-lg-4"><?=$nc['derivada']['causa_raiz']?></div>
    </div>
    
    <div class="form-group">
        <label class="col-lg-2 control-label">Acci&oacute;n</label>
        <div class="col-lg-4"><?=$nc['derivada']['accion_text']?></div>
    </div>
    
    <div class="form-group">
        <label class="col-lg-2 control-label">Aprobada</label>
        <div class="col-lg-4">
            <div class="radio">
                <label>
                    <input id="radio1" type="radio" value="1" name="aprobada"> Si 
                </label>
            </div>
            <div class="radio">
                <label>
                    <input id="radio0" type="radio" value="0" name="aprobada"> No (Cerrar la NC)
                </label>
            </div>
        </div>
    </div>
        
    <div class="form-group">
        <label class="col-lg-2 control-label">Comentarios</label>
        <div class="col-lg-4">
            <textarea name="comentarios" class="form-control"><?php echo set_value('comentarios'); ?></textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="col-lg-2 control-label"></label>
        <div class="col-lg-4">
            <button type="submit" class="btn btn-primary">Crear</button>
        </div>
    </div>

    </div>
</form>